<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/WEB-INF/templates/templateMenu.xhtml">

	<ui:define name="body">
		<a4j:form>
			<rich:toolBar>
				<h:outputText styleClass="texto_negrito" value="Cadastro e Manutenção de Sócios" />
				<rich:toolBarGroup location="right">
					<a4j:commandLink action="#{socioBean.voltar}" immediate="true">
						<h:graphicImage style="border: none;" url="/imagens/arrow_undo.png" />
						<h:outputText value="Voltar" />
					</a4j:commandLink>
					<a4j:commandLink action="#{socioBean.gravar}" reRender="panelCadSocio"
						rendered="#{empty rendered_btgravar ? true : rendered_btgravar}">
						<h:graphicImage style="border: none;" url="/imagens/disk.png" />
						<h:outputText value="Gravar" />
					</a4j:commandLink>
				</rich:toolBarGroup>
			</rich:toolBar>
			<h:panelGroup>
				<h:outputLabel value="Conta: " />
				<h:outputText value="#{socioBean.conta.nome}" styleClass="texto_negrito" />
			</h:panelGroup>
			<h:panelGrid columns="3" id="panelCadSocio">
				<h:outputLabel value="Nome" />
				<h:inputText label="Nome do Sócio" value="#{socioBean.socio.nome}" required="true" id="inpSocNome">
					<f:validateLength maximum="45"/>
				</h:inputText>
				<rich:message for="inpSocNome"/>
				
				<h:outputLabel value="Endereço" />
				<h:inputText label="Endereço" value="#{socioBean.socio.endereco}" required="true" id="inpSocEnd" >
					<f:validateLength maximum="100"/>
				</h:inputText>
				<rich:message for="inpSocEnd"/>
				
				<h:outputLabel value="Cargo"/>
				<h:inputText value="#{socioBean.socio.cargo}" id="inpSocCargo">
					<f:validateLength maximum="25"/>
				</h:inputText>
				<rich:message for="inpSocCargo"/>
				
				<h:outputLabel value="Telefone" />
				<h:inputText value="#{socioBean.socio.telefone}" required="true" id="inpSocTel" />
				<rich:message for="inpSocTel"/>
				
				<h:outputLabel value="E-mail" />
				<h:inputText value="#{socioBean.socio.email}" required="true" id="inpSocEmail">
					<f:validateLength maximum="45"/>
				</h:inputText>
				<rich:message for="inpSocEmail"/>
				
				<h:outputLabel value="CPF" />
				<h:inputText value="#{socioBean.socio.cpf}" required="true" id="inpSocCpf" />
				<rich:message for="inpSocCpf" />
			
			</h:panelGrid>
		</a4j:form>
	</ui:define>

</ui:composition>

</html>